﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.BLL;
using GCELibrary.Current;

namespace ZF.WS.Admin.Member
{
    public partial class MemberInfo : ZF.BLL.Page.MMPage
    {
        [PageArgument(Key = "mid", CanNull = false)]
        public int MemberId { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            using (var dc = SiteInfo.CreateDBDataContext())
            {
          
                var member = dc.US_Member.FirstOrDefault(p =>p.MemberId==this.MemberId);
                if (member == null)
                    throw WarnFactory.CreateWarn(WarnCode.ParameterError);
                this.MemberInfo1.Member = member;
            }
        }
    }
}
